/*=====================================================
Critical Links
Auto Configuration Server

Authors:
	Rui Eduardo Gouveia Gil - r-gil@critical-links.com

Date: 2010
Version 0.1
=======================================================*/
#ifndef __SINDEX_H__
#define __SINDEX_H__

#include <string>
#include <vector>
#include <sstream>
#include <iostream>

namespace acs
{

#define SC_LOG_LIMIT 10
#define SC_DEVICE_LIMIT 10

class SIndex
{
	public:
		static std::vector<std::string> getHtml(std::string divID, std::string query);
		static std::vector<std::string> getDevices(std::string query);
		static std::vector<std::string> getLogs(int offset, int limit);

	private:
		static std::string getDevicesHtml(std::string query);
		static std::string getLogsHtml(int offset, int limit);
};

}

#endif

